package com.sharemarking.system.service.impl;

import com.sharemarking.system.entity.Menu;
import com.sharemarking.system.mapper.MenuMapper;
import com.sharemarking.system.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("menuService")
public class MenuServiceImpl implements MenuService {
	
	@Autowired
	private MenuMapper mm;

	@Override
	public Iterable<Menu> getAllMenus() {
		return mm.getSortedMenu();
	}
	
}
